﻿namespace Tiens.NotificationHub.Constant
{
    public static class GroupConstants
    {
        const string nameFormat = "{0}:{1}";//userid:appId
        const string redisKeyFormat = "signalr:app-{0}:connections"; //appId

        public static string ToGroupName(this string userId, string appId) => string.Format(nameFormat, userId, appId);

        public static string ToAppConnectionRedisKey(this string appId) => string.Format(redisKeyFormat, appId);
    }
}
